﻿using UnityEngine;
using System.Collections;

public class BirdCreateTrigger : MonoBehaviour
{
    private void OnTriggerEnter2D(Collider2D collision)
    {
        if (collision.CompareTag("Player"))
        {
            foreach (Transform birdpos in transform)
            {
                BirdCommon bird = ObjectPoolManager.Instance.GetBird();
                bird.transform.position = birdpos.position;
            }
        }
    }
}
